# -*- coding: utf-8 -*-
"""
Created on Sat Jul 14 21:54:12 2018

@author: Sam
"""

var = 0

def didnt_change_var():
    print("Did not change var called!")
    var = 10

def change_var():
    print("Change var called!")
    global var
    var += 1
    
def didnt_reset_var():
    print("\n\nDid not reset var called!")
    var = 0
    import Try_global_vars as g_vars
    g_vars.var += 1

"""
def another_rset_var():
    print("\n\nanother_rset_var called!")
    import sys
    print(sys.path)
    #print("\n\n", sys.modules)
    mod = sys.modules['Try_py_docs']
    print(mod)
"""   

print("var at start:", var)
didnt_change_var()
print("var after didnt_change_var:", var)
change_var()
print("var after change_var:", var)
didnt_reset_var()
print("var after didn't reset_var:", var)
#another_rset_var()

